<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
  <link rel="icon" href='/static/favicon.ico' />
  <link rel="stylesheet" href="/static/jquery-ui.css">
  <script src="/static/jquery-1.9.1.js"></script>
  <script src="/static/jquery-ui.js"></script>
  <link rel="stylesheet" href="/static/style.css">
  <title>pydemo</title>
  <script>
  	function http( id, data ){
		  url = "/" + id
		  id = "#" + id
  	      $.ajax({
  	          type : "POST",
  	          contentType: "application/json;charset=UTF-8",
  	          url : url,
  	          data : JSON.stringify(data),
  	          success : function(result) {
		  		$(id).text(result)			
  	          },
  	          error : function(e){
  	              console.log(e.status);
  	              console.log(e.responseText);
  	          }
  	      });
    }
	  http('details',{"name":"details","other":"null"} );
	  http('reviews',{"name":"reviews","other":"null"} );
	  http('version',{"name":"version","other":"null"} );
  </script>
</head>
<body>
    <h1>pydemo</h1>
    <div id=details >
    </div>
    <div id=reviews >
    </div>
    </br>
    <div id=version >
    </div>
</body>
</html>
